package com.example.mydemo.service.impl;

import com.example.mydemo.entity.Employee;
import com.example.mydemo.mapper.EmployeeMapper;
import com.example.mydemo.service.IEmployeeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author syf
 * @since 2025-06-06
 */
@Service
public class EmployeeServiceImpl extends ServiceImpl<EmployeeMapper, Employee> implements IEmployeeService {
    @Autowired
    private EmployeeMapper employeeMapper;
    public List<Employee> queryByPage(int pageNum, int pageSize){
        return employeeMapper.queryByPage(pageNum, pageSize);
    }
}
